package cn.edu.scau.cmi.ema.service;

import java.util.List;
import java.util.Set;
import java.io.IOException;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestParam;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;


public interface FoodbatchmaterialService {

	public Foodbatchmaterial saveFoodbatchmaterial(Foodbatchmaterial foodbatchmaterial);

	public Set<Foodbatchmaterial> loadFoodbatchmaterials();

	public Set<Foodbatchmaterial> loadReferenceFoodbatchmaterials(Set<Foodbatchmaterial> foodbatchmaterials);

	public Set<Foodbatchmaterial> loadFoodbatchmaterialsByIdSet(Set<Integer> foodbatchmaterialsId);

	public Map<String, ?> loadFoodbatchmaterialObjectReferencedSet(Foodbatchmaterial foodbatchmaterial);

	public Map<String, ?> loadFoodbatchmaterialClassReferencedSet(Foodbatchmaterial foodbatchmaterial);

	public void deleteFoodbatchmaterial(Foodbatchmaterial foodbatchmaterial);

	public void deleteFoodbatchmaterials(Set<Integer> deleteFoodbatchmaterialsId);

	public List<Foodbatchmaterial> findAllFoodbatchmaterials(Integer startResult, Integer maxRows);

	public Foodbatchmaterial findFoodbatchmaterialByPrimaryKey(Integer id);

	public Integer countFoodbatchmaterials();

	public Integer countFoodbatchmaterials(CmiPagination page);

	public Integer countFoodbatchmaterialsByName(String queryName);

	public Integer countFoodbatchmaterialsByDetachedCriteria(CmiPagination page);

}
